home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / StringThing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.3 KB  |  44 lines  |  [TEXT/KAHL]

  1. /* StringThing.h */
  2.  
  3. #ifndef Included_StringThing_h
  4. #define Included_StringThing_h
  5.  
  6. /* StringThing module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12.  
  13. struct StringThingRec;
  14. typedef struct StringThingRec StringThingRec;
  15.  
  16. /* create a new string thing. */
  17. StringThingRec*            NewStringThing(void);
  18.  
  19. /* dispose of a string thing */
  20. void                                DisposeStringThing(StringThingRec* StringThing);
  21.  
  22. /* add some data onto the end of the string thing */
  23. MyBoolean                        AppendStringThing(StringThingRec* StringThing,
  24.                                             char* Data, long Length);
  25.  
  26. /* look up a byte in the string thing */
  27. char                                LookupInStringThing(StringThingRec* StringThing, long Index);
  28.  
  29. /* find out how long the string thing is */
  30. long                                GetStringThingLength(StringThingRec* StringThing);
  31.  
  32. /* delete a block of data from the string thing */
  33. void                                StringThingDeleteStuff(StringThingRec* StringThing,
  34.                                             long StartIndex, long NumBytes);
  35.  
  36. /* return the index of a character in the buffer or -1 if it's not found */
  37. long                                StringThingSearchForChar(StringThingRec* StringThing, char Thing);
  38.  
  39. /* get a subrange of the string thing */
  40. char*                                StringThingGetSubrange(StringThingRec* StringThing,
  41.                                             long StartIndex, long NumBytes);
  42.  
  43. #endif
  44.